package com.junzhiit.nengji.shop.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.shop.service.ShopDeliveryService;
import com.junzhiit.nengji.shop.web.vo.ResultVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/shop/delivery")
public class ShopDeliveryController extends BaseController {
	
	@Autowired
	private ShopDeliveryService shopDeliveryService;
	
	@ApiOperation(value = "查询店铺与用户之间的配送信息")
	@RequestMapping(method = RequestMethod.GET)
	public ResultVO getShopDeliveryInfo(String addressId,String shopId){
		AssertUtil.notNull(addressId, "addressId is required.");
		AssertUtil.notNull(shopId, "shopId is required.");
		return shopDeliveryService.getShopDeliveryInfo(addressId, shopId);
	}

}
